package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * WylQzqy generated by hbm2java
 */
@Entity
@Table(name = "wyl_qzqy")
public class WylQzqy implements java.io.Serializable
{

    private Long id;
    private int version;
    private WylQz wylQz;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String qylx;
    private String bgjzsj;
    private String cswyzt;
    private String wyzt;
    private String cczt;

    public WylQzqy()
    {
    }

    public WylQzqy( Long id,
                    String qylx,
                    String cswyzt,
                    String wyzt,
                    String cczt )
    {
        this.id = id;
        this.qylx = qylx;
        this.cswyzt = cswyzt;
        this.wyzt = wyzt;
        this.cczt = cczt;
    }

    public WylQzqy( Long id,
                    WylQz wylQz,
                    Jbqk jbqk,
                    String username,
                    String operation,
                    Date optdate,
                    String qylx,
                    String bgjzsj,
                    String cswyzt,
                    String wyzt,
                    String cczt)
    {
        this.id = id;
        this.wylQz = wylQz;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.qylx = qylx;
        this.bgjzsj = bgjzsj;
        this.cswyzt = cswyzt;
        this.wyzt = wyzt;
        this.cczt = cczt;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "wyl_ID")
    public WylQz getWylQz()
    {
        return this.wylQz;
    }

    public void setWylQz( WylQz wylQz )
    {
        this.wylQz = wylQz;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "qylx", nullable = false, length = 2)
    public String getQylx()
    {
        return this.qylx;
    }

    public void setQylx( String qylx )
    {
        this.qylx = qylx;
    }

    @Column(name = "bgjzsj", length = 10)
    public String getBgjzsj()
    {
        return this.bgjzsj;
    }

    public void setBgjzsj( String bgjzsj )
    {
        this.bgjzsj = bgjzsj;
    }

    @Column(name = "cswyzt", nullable = false, length = 1)
    public String getCswyzt()
    {
        return this.cswyzt;
    }

    public void setCswyzt( String cswyzt )
    {
        this.cswyzt = cswyzt;
    }

    @Column(name = "wyzt", nullable = false, length = 1)
    public String getWyzt()
    {
        return this.wyzt;
    }

    public void setWyzt( String wyzt )
    {
        this.wyzt = wyzt;
    }

    @Column(name = "cczt", nullable = false, length = 1)
    public String getCczt()
    {
        return this.cczt;
    }

    public void setCczt( String cczt )
    {
        this.cczt = cczt;
    }
}
